package com.example.base.view;

import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;

public class BannerScoller extends Scroller {
  private int mScrollerDuration = 2000;

  public void setmScrollerDuration(int mScrollerDuration) {
    this.mScrollerDuration = mScrollerDuration;
  }

  public BannerScoller(Context context) {
    super(context);
  }

  public BannerScoller(Context context, Interpolator interpolator) {
    super(context, interpolator);
  }

  public BannerScoller(Context context, Interpolator interpolator, boolean flywheel) {
    super(context, interpolator, flywheel);
  }

  @Override
  public void startScroll(int startX, int startY, int dx, int dy, int duration) {
    super.startScroll(startX, startY, dx, dy, mScrollerDuration);
  }
}
